package com.glsc.ngateway.platform.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.ToString;

import java.util.Objects;

/**
 * @author guoj
 * @description: 系统维度统计
 * @date 2024/11/25 17:00
 */
@ToString(callSuper = true)
public class CostAllocationTaskSystemExportDto extends BaseRowModel {
    @ColumnWidth(50)
    @ExcelProperty(value = "系统名称", index = 0)
    private String systemName;
    @ColumnWidth(30)
    @ExcelProperty(value = "IP", index = 1)
    private String IP;
    @ColumnWidth(20)
    @ExcelProperty(value = "合计", index = 2)
    private String totalNum;



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CostAllocationTaskSystemExportDto penBean = (CostAllocationTaskSystemExportDto) o;
        //当type、color 内容都相等的时候，才返回true
        return Objects.equals(systemName, penBean.systemName) &&
                Objects.equals(IP, penBean.IP)&&
                Objects.equals(totalNum, penBean.totalNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(systemName, IP,totalNum);
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }
}
